package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author hs
 */
@ApiModel(value = "用户表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_user")
public class SysUser extends BaseEntity implements Serializable {
    /**
     * 用户名
     */
    @TableField(value = "username")
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 随机盐
     */
    @TableField(value = "salt")
    @ApiModelProperty(value = "随机盐")
    private String salt;

    /**
     * 简介
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "简介")
    private String note;

    /**
     * 头像
     */
    @TableField(value = "logo")
    @ApiModelProperty(value = "头像")
    private String logo;

    /**
     * 是否锁定(0:正常;1:冻结)
     */
    @TableField(value = "lock_flag")
    @ApiModelProperty(value = "是否锁定(0:正常;1:冻结)")
    private Boolean lockFlag;
}